package org.ingeniart.siec.model;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the estudiante_viatico database table.
 * 
 */
@Embeddable
public class EstudianteViaticoPK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;

	@Column(name="id_estudiate")
	private Integer idEstudiate;

	@Column(name="id_viatico")
	private Integer idViatico;

    public EstudianteViaticoPK() {
    }
	public Integer getIdEstudiate() {
		return this.idEstudiate;
	}
	public void setIdEstudiate(Integer idEstudiate) {
		this.idEstudiate = idEstudiate;
	}
	public Integer getIdViatico() {
		return this.idViatico;
	}
	public void setIdViatico(Integer idViatico) {
		this.idViatico = idViatico;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof EstudianteViaticoPK)) {
			return false;
		}
		EstudianteViaticoPK castOther = (EstudianteViaticoPK)other;
		return 
			this.idEstudiate.equals(castOther.idEstudiate)
			&& this.idViatico.equals(castOther.idViatico);

    }
    
	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.idEstudiate.hashCode();
		hash = hash * prime + this.idViatico.hashCode();
		
		return hash;
    }
}